<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<nav class="navbar navbar-default" role="navigation">
  <div class="container-fluid">
    <div class="navbar-header">
      <a class="navbar-brand" href="/admin/index">图书平台</a>
    </div>
    <div>
      <ul class="nav navbar-nav">

        <c:if test="${loginUser.role == 'admin'}">
          <li><a href="/admin/orders/list">订单管理</a></li>
          <li><a href="/admin/goods/list">图书管理</a></li>
         <%-- <li><a href="/admin/news/list">资讯管理</a></li>--%>
          <li><a href="/admin/count/index">数据分析</a></li>
        </c:if>


      </ul>


      <ul class="nav navbar-nav navbar-right">
        <li><a href="#">${loginUser.nickname}</a></li>
        <li><a href="#" onclick="$('#info').modal('show')"><span class="glyphicon glyphicon-user"></span>
          修改密码</a></li>
        <li><a href="/logout"><span class="glyphicon glyphicon-log-in"></span> 退出登录</a></li>
      </ul>
    </div>
  </div>
</nav>